﻿using Microsoft.AspNetCore.SignalR.Client;

namespace Hcf.Logger.SignalR
{
    public class SignalRManager
    {
        public static HubConnection Connection { set; get; }

        static SignalRManager()
        {
            Connection = new HubConnectionBuilder()
                .WithUrl($"http://localhost:5000/DataHub?user=User1")
                .WithAutomaticReconnect()
                .Build();

            Connection.StartAsync().Wait();
        }
    }
}
